<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="/user/update" method="post" th:object="${user}">
        <input type="hidden" name="id" th:value="*{id}">
        姓名：<input type="text" name="name" th:value="*{name}"><br/>
        年龄：<input type="text" name="age" th:value="*{age}"><br/>
        性别：<input type="radio" name="sex" value="男" th:checked="*{sex} eq '男'?'checked':'false'">男
             <input type="radio" name="sex" value="女" th:checked="*{sex} eq '女'?'checked':'false'"}>女<br/>
        <input type="submit" value="修改">
    </form>
</body>
</html>
